//============================================================================================
/**
 * @file	bag_obj.h
 * @brief	バッグ画面OBJ処理
 * @author	Hiroyuki Nakamura
 * @date	05.10.31
 */
//============================================================================================
#ifndef BAG_OBJ_H
#define BAG_OBJ_H
#undef GLOBAL
#ifdef BAG_OBJ_H_GLOBAL
#define GLOBAL	/*	*/
#else
#define GLOBAL	extern
#endif


//============================================================================================
//	定数定義
//============================================================================================
#define	CURSOR_ACT_PX	( 177 )		// アイテム選択カーソル表示X座標
#define	CURSOR_ACT_PY	( 24 )		// アイテム選択カーソル表示Y座標

enum {
	ACT_OFF = 0,	// アクター非表示
	ACT_ON			// アクター表示
};



//============================================================================================
//	プロトタイプ宣言
//============================================================================================

extern void BagCellActorInit( BAG_WORK * wk );
extern void BAGOBJ_ClactFree( BAG_WORK * wk );
extern void BagItemIconChange( BAG_WORK * wk, int pos,u16 item );
extern void Bag_ObjAnmMain( BAG_WORK * wk );
extern u8 BagPocketCursorMoveCheck( BAG_WORK * wk );
extern void BagPocketCursorMoveInit( BAG_WORK * wk );
extern void BagPocketCursorMoveMain( BAG_WORK * wk );
extern void BagObj_WazaIconPut( BAG_WORK * wk, u16 item, u8 flg );

extern void BgObj_CursorPosAppearSet( BAG_WORK *wk, int pos );
extern void BgObj_PocketPalSet( BAG_WORK *wk, int pos );
extern void BagObj_InsertTagSet( BAG_WORK *wk, int num, int target, int key );
extern void BagObj_ItemIconSet( BAG_WORK *wk, POCKET_DATA *p, int num, int icon_refresh );
extern void BagObj_SelectPlateAppear( BAG_WORK *wk, u8 *tbl );
extern void BagObj_SelectPlateDisappear( BAG_WORK *wk );
extern void BagObj_SelectItemMove( BAG_WORK *wk, int select );
extern void BagObj_ItemMoveIconSet( BAG_WORK *wk, POCKET_DATA *p, int only );
extern void BagObj_SelectCountAppear( BAG_WORK *wk, int type, int max );
extern void BagObj_SelectCountDisappear( BAG_WORK *wk );
extern void BagObj_SubCursorPosAppearSet( BAG_WORK *wk, int pos );
extern void BagObj_CursorDisappear( BAG_WORK *wk );
extern void BagObj_PocketSelectButtonOnOff( BAG_WORK *wk, int flag );
extern void BagObj_CancelButtonOnOff( BAG_WORK *wk, int flag );

extern int Bag_GetCountButtonPassive( int max );


#undef GLOBAL
#endif	/* BAG_OBJ_H */